package com.szh.zx.duoxiancheng.chapter1;

public class TestJoin implements Runnable {
	@Override
	public void run() {
		for (int i = 0; i < 100; i++) {
			System.out.println("线程vip：" + i);
		}
	}

	public static void main(String[] args) throws InterruptedException {
		TestJoin join = new TestJoin();
		Thread thread = new Thread(join);
		thread.start();
		for (int i = 0; i < 100; i++) {
			if (i == 20) {
				thread.join();
			}
			System.out.println("main+" + i);
		}

	}
}
